home *** CD-ROM | disk | FTP | other *** search
AMOS Source Code | 1996-01-17 | 2.0 KB | 57 lines |
- ' ************************************* Commands used:
- ' * * Change Bank Font Flush Libs
- ' * Amcaf Examples * Change Print Font
- ' * Fonts V1.1 * Change Font
- ' * Written by Chris Hodges * Make Bank Font
- ' * * Imploder Unpack
- ' ************************************* Bank Temporary
- '
- ' First, decrunch the FileImploded FontBank into chip ram.
- Extension_8_0E8A 9 To -8
- ' Open a neat little screen for our text.
- Screen Open 0,320,256,4,Lowres
- Curs Off : Flash Off : Paper 0 : Pen 1 : Cls 0
- Palette 0,$FFF,$8F8,$88F
- ' Change the font to Iva 50.
- Extension_8_1204 8
- ' Print some nice text onto the screen.
- Ink 1,0 : Text 0,Text Base,"Hello World!"
- ' Set a new print font. This font is saved in bank 10.
- Extension_8_11A0 10
- ' Now print out some text.
- Locate 0,8 : Pen 2
- Centre "What an ugly print-font, eh?" : Print
- Centre "But I don't care, so why should you?" : Print : Print
- Pen 3
- Centre "AMCAF - the next generation"
- ' Again, change the text font. I hope you have the diskfont.library?
- Extension_8_059C "topaz",16
- ' Print out an irritating line of text.
- Text 0,112+Text Base,"Waaahhh! Topaz 16!!!"
- ' Grab the font into a bank. The bank should be temporary in this case.
- Extension_8_11EE 11 : Extension_8_008A 11
- ' Just look!
- Locate 0,18
- List Bank
- ' Wait for keypress.
- Print
- Centre "Press any key to proceed."
- Wait Key
- ' Now close screen 0, to get rid of the different fonts.
- Screen Close 0
- ' Additionally, flush everything away.
- Extension_8_05D6
- ' Now reopen a fresh screen and change the font back.
- Screen Open 0,320,256,4,Lowres
- Curs Off : Flash Off : Paper 0 : Pen 1 : Cls 0
- Palette 0,$FFF,$8F8,$88F
- Extension_8_1204 11
- ' The usual babble...
- Ink 2,0
- Text 0,Text Base+100,"Sometimes the"
- Text 0,Text Base+132,"fonts come back!"
- ' Quit the program after the user has pressed a key.
- Locate 0,23 : Centre "Press any key to quit."
- Wait Key
- Screen Close 0
- End